<form class="form-inline" action="<?=printUrl('Main','adminSubScore')?>" name="subScore" id="subScore">
<div class="table-responsive">
<table border="1" cellspacing="0" class="table table-hover table-bordered table-condensed">
  <thead>
    <tr>
      <th class="bg-primary text-center" rowspan="2">地区</th>
      <th class="bg-primary text-center" rowspan="2">大区</th>
      <th class="bg-primary text-center" rowspan="2">小区</th>
      <th class="bg-primary text-center" rowspan="2">城市</th>
      <th class="bg-primary text-center" rowspan="2">编码</th>
      <th class="bg-primary text-center" rowspan="2">专营店</th>
      <th class="bg-primary text-center" colspan="2">双月预算明细</th>
      <th class="bg-primary text-center" colspan="4">双月结算明细</th>
    </tr>
    <tr>
      <th class="bg-primary text-center">预算申请金额</th>
      <th class="bg-primary text-center">站点数</th>
      <th class="bg-primary text-center">双月额度</th>
      <th class="bg-primary text-center">结算申请金额</th>
      <th class="bg-primary text-center">结算审批金额</th>
      <th class="bg-primary text-center">结算金额</th>
    </tr>
  </thead>
  <tbody>
    <?php
    foreach ($procList as $k => $v) {
    ?>
    <tr>
      <td class="text-center"><?=isset($allStoreList[$v['storeId']]) ? $allStoreList[$v['storeId']]['area'] : ''?></td>
      <td class="text-center"><?=isset($allStoreList[$v['storeId']]) ? $allStoreList[$v['storeId']]['region'] : ''?></td>
      <td class="text-center"><?=isset($allStoreList[$v['storeId']]) ? $allStoreList[$v['storeId']]['spsarea'] : ''?></td>
      <td class="text-center"><?=isset($allStoreList[$v['storeId']]) ? $allStoreList[$v['storeId']]['city'] : ''?></td>
      <td class="text-center"><a href="<?=printUrl('XunBudget','adminList', array('storeId'=>$v['storeId']))?>" target="_blank"><?=isset($allStoreList[$v['storeId']]) ? $allStoreList[$v['storeId']]['coding'] : ''?></a></td>
      <td class="text-center"><a href="<?=printUrl('XunBudget','adminList', array('storeId'=>$v['storeId']))?>" target="_blank"><?=isset($allStoreList[$v['storeId']]) ? $allStoreList[$v['storeId']]['storeName'] : ''?></a></td>
      <td class="text-center"><?=(float)$v['budgetApply']?></td>
      <td class="text-center"><?=(float)$v['siteNum']?></td>
      <td class="text-center"><?=(float)$v['fixedMoney']?></td>
      <td class="text-center"><?=(float)$v['settleApply']?></td>
      <td class="text-center"><?=(float)$v['settleAudit']?></td>
      <td class="text-center"><?=(float)$v['settleMoney']?></td>
    </tr>
    <?php } ?>
    <?php
    $total = getArrayColumnTotal($procList,
        array('fixedMoney','siteNum','budgetApply','settleApply','settleAudit','settleMoney'),1);
    ?>
    <tr>
      <td class="text-center" colspan="6">合计</td>
      <td class="text-center"><?=$total['budgetApply']?></td>
      <td class="text-center"><?=$total['siteNum']?></td>
      <td class="text-center"><?=$total['fixedMoney']?></td>
      <td class="text-center"><?=$total['settleApply']?></td>
      <td class="text-center"><?=$total['settleAudit']?></td>
      <td class="text-center"><?=$total['settleMoney']?></td>
    </tr>
  </tbody>
</table>
</div>
</form>